﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace DoAn
{
    public partial class frXemchitiet : Form
    {
        public frXemchitiet()
        {
            InitializeComponent();
        }
        public frXemchitiet(string MaNV): this()
        {
            NhanVienDTO nvDTO = new NhanVienDTO();
            NhanVienBUS nvBUS = new NhanVienBUS();
            nvDTO = nvBUS.Laynvtheoma(MaNV);
            txtMaNV.Text = nvDTO.MaNV;
            txtTenNV.Text = nvDTO.TenNV;
            txtDienThoai.Text = nvDTO.DienThoai.ToString();
            txtNgaySinh.Text = nvDTO.NgaySinh.ToString();
            txtGioiTinh.Text = nvDTO.GioiTinh.ToString();
            txtMaBoPhan.Text = nvDTO.MaBoPhan.ToString();
            txtDiaChi.Text = nvDTO.DiaChi.ToString();
            txtLuong.Text = nvDTO.Luong.ToString();
        }
    }
}
